package JvmMemory;


import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @BelongsProject: learn-learning-everyday
 * @BelongsPackage: JvmMemory
 * @Author: Chen Wei
 * @CreateTime: 2024-01-20  10:18
 * @Description: TODO
 * @Version: 1.0
 */
@SuppressWarnings("all")
public class ShowDefaultGc {
    public static void main(String[] args) {
        List<Object> list=new ArrayList<>();
        int count=0;

        while (true){
            if (list.size() % 1024 ==0){
                list.clear();
            }


            list.add(new byte[1024 * 1024 * 1]);
        }
    }
}
